
/**用户鉴权方法*/

var axios = require("axios");
var baseApi = require("../config/baseApi")
var {
    httpRequest
} = require("./request");

async function verifyFun(req) {
    let verifyRes = await httpRequest('get', baseApi.verifyUrl, req.query);
    return verifyRes.data.return.code == 200 ? true : verifyRes.data;
}

module.exports = {
    verifyFun
};
